/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-19 19:32:29
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-19 19:50:49
 */
public class Test09_automobile{
    public static void main(String[] args) {
        Truck truck = new Truck("北汽","苏U12345","中型");
        int rent = truck.getRent(3);
        System.out.println(truck.getBrand() + "\t" + truck.getPlatenumber() + "租金为：" + rent);
        Automobile bus = new Bus("字通","苏A11111",30);
        int busRent = bus.getRent(10);
        System.out.println(bus.getBrand() + "\t" + bus.getPlatenumber() + "租金为：" + busRent);
        
    }
}
